//把path引入进来
const path = require('path')

module.exports = {
    mode:'development',
    entry:'./src/index.js',//单入口
    //出口
    output:{
        filename:'a.js',
        //__dirname 当前文件的绝对路径
        path:path.resolve(__dirname,'dist')
    }
};
